<?php

require_once ('Zend/Form.php');

class Form_Professor_Csv extends Zend_Form {
	
	public function __construct($options = null) {
		parent::__construct ($options);
		
		$this->setMethod('post');
		$this->addDecorator('fieldset',array('legend' => 'CSV Import'));
		$this->setAttrib('enctype', 'multipart/form-data');
		
		$file = new Zend_Form_Element_File('file');
		$file->setLabel('CSV súbor')
		->addValidator('count',false,1)
		->addValidator('extension',false,'csv');		
		
		$submitCsv = new Zend_Form_Element_Submit('csvSubmit');
		$submitCsv->setLabel('Import');
		
		$this->addElements(array($file));
	}
}

?>